package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 微信用户相册对象 wz_photo_album
 * @author by caoyong
 * @date 2022/11/8
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_photo_album")
public class WzPhotoAlbum {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id" ,type = IdType.AUTO) //id自动递增
    private Long id;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wid;

    /** 照片url */
    @Excel(name = "照片url")
    private String photoUrl;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;


}
